import java.util.Scanner;

//输入一个整数，判断是否是7的倍数。
public class homework15 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        if(n%7==0){
            System.out.println(n+"是7的倍数");
        }else{
            System.out.println(n+"不是7的倍数");
        }
    }
}
